package modellayer;

/**
 * The customer class to create customer objects
 * @author Allan Eriksen, Andreas Rye, Casper Madsen, Christian Stidsborg, Stefan Bols
 */

public class Supplier {
	private int supplierId;
	private String name;
	private String address;
	private String country;
	private String phonenumberOriginCode;
	private String phonenumber;
	private String email;



	private boolean isDummy = false;
	/**
	 * @param supplierId
	 * @param name
	 * @param address
	 * @param country
	 * @param phonenumberOriginCode
	 * @param phonenumber
	 * @param email
	 */
	public Supplier(int supplierId, String name, String address,
			String country, String phonenumberOriginCode, String phonenumber, String email) {
		super();
		this.supplierId = supplierId;
		this.name = name;
		this.address = address;
		this.country = country;
		this.phonenumberOriginCode = phonenumberOriginCode;
		this.phonenumber = phonenumber;
		this.email = email;
	
	}
	
	/**
	 * 
	 * @param supplierId
	 */
	public Supplier(int supplierId) {
		this.supplierId = supplierId;
		this.isDummy = true;
	}
	/**
	 * Get method for the supplier id
	 * @return the supplierId
	 */
	public int getSupplierId() {
		return supplierId;
	}
	/**
	 * Set method for the supplier id
	 * @param supplierId 
	 */
	public void setSupplierId(int supplierId) {
		this.supplierId = supplierId;
	}
	/**
	 * Get method for the name
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * Set method for the name
	 * @param name 
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * Get method for the address
	 * @return the address
	 */
	public String getAddress() {
		return address;
	}
	/**
	 * Set method for the address
	 * @param address 
	 */
	public void setAddress(String address) {
		this.address = address;
	}
	/**
	 * Get method for the country
	 * @return the country
	 */
	public String getCountry() {
		return country;
	}
	/**
	 * Set method for the country
	 * @param country 
	 */
	public void setCountry(String country) {
		this.country = country;
	}
	/**
	 * Get method for the phonenumber
	 * @return the phonenumber
	 */
	public String getPhonenumber() {
		return phonenumber;
	}
	/**
	 * Set method for the phonenumber
	 * @param phonenumber 
	 */
	public void setPhonenumber(String phonenumber) {
		this.phonenumber = phonenumber;
	}
	/**
	 * Get method for the email
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}
	/**
	 * Set method for the email
	 * @param email 
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * Get method for the phonenumberOriginCode
	 * @return phonenumberOriginCode
	 */
	public String getPhonenumberOriginCode() {
		return phonenumberOriginCode;
	}

	/**
	 * Set method for the phonenumberOriginCode
	 * @param phonenumberOriginCode
	 */
	public void setPhonenumberOriginCode(String phonenumberOriginCode) {
		this.phonenumberOriginCode = phonenumberOriginCode;
	}
	
	/**
	 * @return the isDummy
	 */
	public boolean isDummy() {
		return this.isDummy;
	}
	
	
}
